package com.tao.extend_.exercise;

public class Notepad extends PC{
    private String color;

    public Notepad(String cpu, int memory, int disk, String brand, String color) {
        super(cpu, memory, disk, brand);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public void printInfo(){
        System.out.println("Notepad信息=");
        System.out.println(getDetils()+ " 品牌是" + getBrand() + " color是" + color);
    }
}
